home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48hor2 / remote3.doc < prev    next >
Text File  |  1995-03-31  |  2KB  |  57 lines

  1. (Comp.sys.hp48) 
  2. Item: 82 by detlef at mwhh.hanse.de 
  3. Author: [Detlef M ller] 
  4.   Subj: REMOTE3: debugged IR remote routines 
  5.   Date: Sun Oct 27 1991 
  6.  
  7. [These routines can be considered upgrades to REMOTE and REMOTE2 on 
  8.  previous Goodies Disks.  Don't use them; use these.  Also see REMOTE4 
  9.  on this disk for another programmer's approach.  -jkh-] 
  10.  
  11. Hi, everybody. 
  12.  
  13. There was a bug in the previous routines. 
  14.  
  15. Fortunately I decompiled the programs before I used them. XMITREM 
  16. masked out unused bits from every nibble in the string 
  17. (read-modify-write in a loop) before sending it to the IR-LED. The 
  18. loop was set up incorrectly: it modified six nibbles BEHIND the 
  19. string. If the string used up all of the room left in the TEMPOB area, 
  20. it is possible that the topmost address in the RPL return stack would 
  21. be modified.  This 'sometime'-error (I hate them :-) could cause a 
  22. Memory Clear.  I have fixed this bug. 
  23.  
  24. Here are the corrected and modified programs : 
  25.  
  26. Program     :  XMIT3 
  27. Interface   :  ( $ --> ) 
  28. Description :  Transfer a string (sampled by Look !) to the IR-LED. 
  29. Note        :  Originally written by David J. Marsh . Modified by DM. 
  30.                Feed only with strings sampled by Look !!! 
  31. Chksum/Size :  #7AB1 / 84 
  32.  
  33. Program     :  LOOK 
  34. Interface   :  ( $ --> $ ) 
  35. Description :  Sample data from the redeye into the given string. 
  36. Note        :  Originally written by David J. Marsh . Modified by DM. 
  37. Chksum/Size :  #CB14 / 103 
  38.  
  39. Program     :  MKSTR 
  40. Interface   :  ( % --> $ ) 
  41. Description :  Quickly generate a % length empty string. 
  42. Note        :  Rewritten by DM. 
  43. Chksum/Size :  #FC2B / 30 
  44.  
  45. Have fun with it, 
  46.      8-), Detlef. 
  47.  
  48. P.S. Our Phillips-TV needs a character string which is at least ~325 chars 
  49.      long to 'see' Xmit'ed commands (max. distance: with card bay closed - 
  50.      ~2 m, with card bay opened - ~3.5 m). DM 
  51.  
  52. úÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄâÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ 
  53. 3       `You mean this isn't        3             Detlef M ller             3 
  54. 3          the afterlife ?`         3          detlef@mwhh.hanse.de         3 
  55. 3 Arthur in THGTTG, part II, p. 78  3...!uunet!mcsun!unido!mcshh!mwhh!detlef3 
  56. àÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄáÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄù 
  57.